package com.example.warehouse_manager.service;


import com.example.warehouse_manager.entity.Result;
import com.example.warehouse_manager.entity.Store;
import com.example.warehouse_manager.page.Page;
import com.example.warehouse_manager.vo.StoreCountVo;

import java.util.List;

/**
* @author Yang
* @description 针对表【store(仓库表)】的数据库操作Service
* @createDate 2024-03-22 13:56:05
*/
public interface StoreService{

    //查询所有仓库
    public List<Store> queryAllStore();

    //查询每个仓库商品数量
    public List<StoreCountVo> queryStoreCount();


    //分页查询仓库的业务方法
    public Page queryStorePage(Page page, Store store);

    //校验仓库编号是否已存在的业务方法
    public com.example.warehouse_manager.entity.Result checkStoreNum(String storeNum);

    //添加仓库的业务方法
    public com.example.warehouse_manager.entity.Result saveStore(Store store);

    //修改仓库的业务方法
    public com.example.warehouse_manager.entity.Result updateStore(Store store);

    //删除仓库的业务方法
    public Result deleteStore(Integer storeId);

}
